#pragma once
#ifndef ANIMATION_H
#define ANIMATION_H

class CAnimation
{
private:
	int indexSprite;
	int firstFrame;
	int lastFrame;
	int currentFrame;
	int offsetTime;
	int timeBeginAnimation;

public:
	CAnimation::CAnimation(int indexSprite, int firstFrame, int lastFrame, int offsetFime);
	CAnimation::~CAnimation(void);

	//gettor
	int CAnimation::getIndexSprite(void)const;
	int CAnimation::getFirstFrame(void)const;
	int CAnimation::getLastFrame(void)const;
	int CAnimation::getCurrentFrame(void)const;
	int CAnimation::getOffsetTime(void)const;
	int CAnimation::getTimeBeginAnimation(void)const;
	int CAnimation::getHowManyTime(void)const;
	//settor
	void CAnimation::setIndexSprite(int indexSprite);
	void CAnimation::setFirstFrame(int firstFrame);
	void CAnimation::setLastFrame(int lastFrame);
	void CAnimation::setCurrentFrame(int currentFrame);
	void CAnimation::setOffsetTime(int offsetTime);
	void CAnimation::setTimeBeginAnimation(int timeBeginAnimation);
	void CAnimation::setHowManyTime(int howManyTime);
};

#endif